package com.itheima.stock.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "id-worker.config")
public class IdWorkerProperties {

    /**
     *  数据中心ID
     */
    private long datacenterId;

    /**
     *  机器ID
     */
    private long machineId;

}
